package com.example.demo.mapperDAO;

import com.example.demo.entity.User;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface UserMapper {
    User login(User user);

    @Select("select * from user where id = #{id}")
    public User findById(Integer id);
}
